.class final Les/ia0;
.super Ljava/lang/Object;
.source "TtmlNode.java"


# instance fields
.field public final a:Ljava/lang/String;

.field public final b:Ljava/lang/String;

.field public final c:Z

.field public final d:J

.field public final e:J

.field public final f:Les/la0;

.field private g:[Ljava/lang/String;

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ia0;",
            ">;"
        }
    .end annotation
.end field

.field private i:I

.field private j:I


# direct methods
.method private constructor <init>(Ljava/lang/String;Ljava/lang/String;JJLes/la0;[Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/ia0;->a:Ljava/lang/String;

    .line 3
    iput-object p2, p0, Les/ia0;->b:Ljava/lang/String;

    .line 4
    iput-object p7, p0, Les/ia0;->f:Les/la0;

    .line 5
    iput-object p8, p0, Les/ia0;->g:[Ljava/lang/String;

    if-eqz p2, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 6
    :goto_0
    iput-boolean p1, p0, Les/ia0;->c:Z

    .line 7
    iput-wide p3, p0, Les/ia0;->d:J

    .line 8
    iput-wide p5, p0, Les/ia0;->e:J

    return-void
.end method

.method private a(JLandroid/text/SpannableStringBuilder;Z)Landroid/text/SpannableStringBuilder;
    .locals 5

    .line 36
    invoke-virtual {p3}, Landroid/text/SpannableStringBuilder;->length()I

    move-result v0

    iput v0, p0, Les/ia0;->i:I

    .line 37
    iput v0, p0, Les/ia0;->j:I

    .line 38
    iget-boolean v0, p0, Les/ia0;->c:Z

    if-eqz v0, :cond_0

    if-eqz p4, :cond_0

    .line 39
    iget-object p1, p0, Les/ia0;->b:Ljava/lang/String;

    invoke-virtual {p3, p1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;

    goto :goto_3

    .line 40
    :cond_0
    iget-object v0, p0, Les/ia0;->a:Ljava/lang/String;

    const-string v1, "br"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    if-eqz p4, :cond_1

    const/16 p1, 0xa

    .line 41
    invoke-virtual {p3, p1}, Landroid/text/SpannableStringBuilder;->append(C)Landroid/text/SpannableStringBuilder;

    goto :goto_3

    .line 42
    :cond_1
    iget-object v0, p0, Les/ia0;->a:Ljava/lang/String;

    const-string v1, "metadata"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    goto :goto_3

    .line 43
    :cond_2
    invoke-virtual {p0, p1, p2}, Les/ia0;->a(J)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 44
    iget-object v0, p0, Les/ia0;->a:Ljava/lang/String;

    const-string v1, "p"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 45
    :goto_0
    invoke-virtual {p0}, Les/ia0;->a()I

    move-result v3

    if-ge v2, v3, :cond_5

    .line 46
    invoke-virtual {p0, v2}, Les/ia0;->a(I)Les/ia0;

    move-result-object v3

    if-nez p4, :cond_4

    if-eqz v0, :cond_3

    goto :goto_1

    :cond_3
    const/4 v4, 0x0

    goto :goto_2

    :cond_4
    :goto_1
    const/4 v4, 0x1

    :goto_2
    invoke-direct {v3, p1, p2, p3, v4}, Les/ia0;->a(JLandroid/text/SpannableStringBuilder;Z)Landroid/text/SpannableStringBuilder;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_5
    if-eqz v0, :cond_6

    .line 47
    invoke-static {p3}, Les/ka0;->a(Landroid/text/SpannableStringBuilder;)V

    .line 48
    :cond_6
    invoke-virtual {p3}, Landroid/text/SpannableStringBuilder;->length()I

    move-result p1

    iput p1, p0, Les/ia0;->j:I

    :cond_7
    :goto_3
    return-object p3
.end method

.method public static a(Ljava/lang/String;)Les/ia0;
    .locals 10

    .line 1
    new-instance v9, Les/ia0;

    invoke-static {p0}, Les/ka0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v1, 0x0

    const-wide/16 v3, -0x1

    const-wide/16 v5, -0x1

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v0, v9

    invoke-direct/range {v0 .. v8}, Les/ia0;-><init>(Ljava/lang/String;Ljava/lang/String;JJLes/la0;[Ljava/lang/String;)V

    return-object v9
.end method

.method public static a(Ljava/lang/String;JJLes/la0;[Ljava/lang/String;)Les/ia0;
    .locals 10

    .line 2
    new-instance v9, Les/ia0;

    const/4 v2, 0x0

    move-object v0, v9

    move-object v1, p0

    move-wide v3, p1

    move-wide v5, p3

    move-object v7, p5

    move-object/from16 v8, p6

    invoke-direct/range {v0 .. v8}, Les/ia0;-><init>(Ljava/lang/String;Ljava/lang/String;JJLes/la0;[Ljava/lang/String;)V

    return-object v9
.end method

.method private a(Landroid/text/SpannableStringBuilder;Ljava/util/Map;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/text/SpannableStringBuilder;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/la0;",
            ">;)V"
        }
    .end annotation

    .line 49
    iget v0, p0, Les/ia0;->i:I

    iget v1, p0, Les/ia0;->j:I

    if-eq v0, v1, :cond_1

    .line 50
    iget-object v0, p0, Les/ia0;->f:Les/la0;

    iget-object v1, p0, Les/ia0;->g:[Ljava/lang/String;

    invoke-static {v0, v1, p2}, Les/ka0;->a(Les/la0;[Ljava/lang/String;Ljava/util/Map;)Les/la0;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 51
    iget v1, p0, Les/ia0;->i:I

    iget v2, p0, Les/ia0;->j:I

    invoke-static {p1, v1, v2, v0}, Les/ka0;->a(Landroid/text/SpannableStringBuilder;IILes/la0;)V

    :cond_0
    const/4 v0, 0x0

    .line 52
    :goto_0
    invoke-virtual {p0}, Les/ia0;->a()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 53
    invoke-virtual {p0, v0}, Les/ia0;->a(I)Les/ia0;

    move-result-object v1

    invoke-direct {v1, p1, p2}, Les/ia0;->a(Landroid/text/SpannableStringBuilder;Ljava/util/Map;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method private a(Ljava/util/TreeSet;Z)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/TreeSet<",
            "Ljava/lang/Long;",
            ">;Z)V"
        }
    .end annotation

    .line 11
    iget-object v0, p0, Les/ia0;->a:Ljava/lang/String;

    const-string v1, "p"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez p2, :cond_0

    if-eqz v0, :cond_2

    .line 12
    :cond_0
    iget-wide v1, p0, Les/ia0;->d:J

    const-wide/16 v3, -0x1

    cmp-long v5, v1, v3

    if-eqz v5, :cond_1

    .line 13
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z

    .line 14
    :cond_1
    iget-wide v1, p0, Les/ia0;->e:J

    cmp-long v5, v1, v3

    if-eqz v5, :cond_2

    .line 15
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z

    .line 16
    :cond_2
    iget-object v1, p0, Les/ia0;->h:Ljava/util/List;

    if-nez v1, :cond_3

    return-void

    :cond_3
    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 17
    :goto_0
    iget-object v3, p0, Les/ia0;->h:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-ge v2, v3, :cond_6

    .line 18
    iget-object v3, p0, Les/ia0;->h:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/ia0;

    if-nez p2, :cond_5

    if-eqz v0, :cond_4

    goto :goto_1

    :cond_4
    const/4 v4, 0x0

    goto :goto_2

    :cond_5
    :goto_1
    const/4 v4, 0x1

    :goto_2
    invoke-direct {v3, p1, v4}, Les/ia0;->a(Ljava/util/TreeSet;Z)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_6
    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 10
    iget-object v0, p0, Les/ia0;->h:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    return v0
.end method

.method public a(I)Les/ia0;
    .locals 1

    .line 7
    iget-object v0, p0, Les/ia0;->h:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 8
    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ia0;

    return-object p1

    .line 9
    :cond_0
    new-instance p1, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {p1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw p1
.end method

.method public a(JLjava/util/Map;)Ljava/lang/CharSequence;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(J",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/la0;",
            ">;)",
            "Ljava/lang/CharSequence;"
        }
    .end annotation

    .line 19
    new-instance v0, Landroid/text/SpannableStringBuilder;

    invoke-direct {v0}, Landroid/text/SpannableStringBuilder;-><init>()V

    const/4 v1, 0x0

    .line 20
    invoke-direct {p0, p1, p2, v0, v1}, Les/ia0;->a(JLandroid/text/SpannableStringBuilder;Z)Landroid/text/SpannableStringBuilder;

    .line 21
    invoke-direct {p0, v0, p3}, Les/ia0;->a(Landroid/text/SpannableStringBuilder;Ljava/util/Map;)V

    .line 22
    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->length()I

    move-result p1

    const/4 p2, 0x0

    :goto_0
    const/16 p3, 0x20

    if-ge p2, p1, :cond_2

    .line 23
    invoke-virtual {v0, p2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result v2

    if-ne v2, p3, :cond_1

    add-int/lit8 v2, p2, 0x1

    move v3, v2

    .line 24
    :goto_1
    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->length()I

    move-result v4

    if-ge v3, v4, :cond_0

    invoke-virtual {v0, v3}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result v4

    if-ne v4, p3, :cond_0

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_0
    sub-int/2addr v3, v2

    if-lez v3, :cond_1

    add-int p3, p2, v3

    .line 25
    invoke-virtual {v0, p2, p3}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    sub-int/2addr p1, v3

    :cond_1
    add-int/lit8 p2, p2, 0x1

    goto :goto_0

    :cond_2
    if-lez p1, :cond_3

    .line 26
    invoke-virtual {v0, v1}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result p2

    if-ne p2, p3, :cond_3

    const/4 p2, 0x1

    .line 27
    invoke-virtual {v0, v1, p2}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    add-int/lit8 p1, p1, -0x1

    :cond_3
    const/4 p2, 0x0

    :goto_2
    add-int/lit8 v2, p1, -0x1

    const/16 v3, 0xa

    if-ge p2, v2, :cond_5

    .line 28
    invoke-virtual {v0, p2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result v2

    if-ne v2, v3, :cond_4

    add-int/lit8 v2, p2, 0x1

    invoke-virtual {v0, v2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result v3

    if-ne v3, p3, :cond_4

    add-int/lit8 v3, p2, 0x2

    .line 29
    invoke-virtual {v0, v2, v3}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    add-int/lit8 p1, p1, -0x1

    :cond_4
    add-int/lit8 p2, p2, 0x1

    goto :goto_2

    :cond_5
    if-lez p1, :cond_6

    .line 30
    invoke-virtual {v0, v2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result p2

    if-ne p2, p3, :cond_6

    .line 31
    invoke-virtual {v0, v2, p1}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    add-int/lit8 p1, p1, -0x1

    :cond_6
    :goto_3
    add-int/lit8 p2, p1, -0x1

    if-ge v1, p2, :cond_8

    .line 32
    invoke-virtual {v0, v1}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result p2

    if-ne p2, p3, :cond_7

    add-int/lit8 p2, v1, 0x1

    invoke-virtual {v0, p2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result v2

    if-ne v2, v3, :cond_7

    .line 33
    invoke-virtual {v0, v1, p2}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    add-int/lit8 p1, p1, -0x1

    :cond_7
    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    :cond_8
    if-lez p1, :cond_9

    .line 34
    invoke-virtual {v0, p2}, Landroid/text/SpannableStringBuilder;->charAt(I)C

    move-result p3

    if-ne p3, v3, :cond_9

    .line 35
    invoke-virtual {v0, p2, p1}, Landroid/text/SpannableStringBuilder;->delete(II)Landroid/text/SpannableStringBuilder;

    :cond_9
    return-object v0
.end method

.method public a(Les/ia0;)V
    .locals 1

    .line 4
    iget-object v0, p0, Les/ia0;->h:Ljava/util/List;

    if-nez v0, :cond_0

    .line 5
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Les/ia0;->h:Ljava/util/List;

    .line 6
    :cond_0
    iget-object v0, p0, Les/ia0;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public a(J)Z
    .locals 5

    .line 3
    iget-wide v0, p0, Les/ia0;->d:J

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    iget-wide v0, p0, Les/ia0;->e:J

    cmp-long v4, v0, v2

    if-eqz v4, :cond_3

    :cond_0
    iget-wide v0, p0, Les/ia0;->d:J

    cmp-long v4, v0, p1

    if-gtz v4, :cond_1

    iget-wide v0, p0, Les/ia0;->e:J

    cmp-long v4, v0, v2

    if-eqz v4, :cond_3

    :cond_1
    iget-wide v0, p0, Les/ia0;->d:J

    cmp-long v4, v0, v2

    if-nez v4, :cond_2

    iget-wide v0, p0, Les/ia0;->e:J

    cmp-long v2, p1, v0

    if-ltz v2, :cond_3

    :cond_2
    iget-wide v0, p0, Les/ia0;->d:J

    cmp-long v2, v0, p1

    if-gtz v2, :cond_4

    iget-wide v0, p0, Les/ia0;->e:J

    cmp-long v2, p1, v0

    if-gez v2, :cond_4

    :cond_3
    const/4 p1, 0x1

    goto :goto_0

    :cond_4
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public b()[J
    .locals 6

    .line 1
    new-instance v0, Ljava/util/TreeSet;

    invoke-direct {v0}, Ljava/util/TreeSet;-><init>()V

    const/4 v1, 0x0

    .line 2
    invoke-direct {p0, v0, v1}, Les/ia0;->a(Ljava/util/TreeSet;Z)V

    .line 3
    invoke-virtual {v0}, Ljava/util/TreeSet;->size()I

    move-result v2

    new-array v2, v2, [J

    .line 4
    invoke-virtual {v0}, Ljava/util/TreeSet;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 5
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 6
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    add-int/lit8 v5, v1, 0x1

    .line 7
    aput-wide v3, v2, v1

    move v1, v5

    goto :goto_0

    :cond_0
    return-object v2
.end method
